home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-02-05 | 906 b | 44 lines | [TEXT/KAHL] |
- //
- // General Header
- //
-
- #define __CDEVTESTER__
-
- #define NIL 0L
- #define NIL_MOUSE_REGION 0L
- #define MIN_SLEEP 0L
- #define MAX_SLEEP 0xFFFFFFFF
- #define REMOVE_ALL_EVENTS 0
- #define INACTIVE 255
- #define ACTIVE 0
- #define RESUMING 1
- #define SUSPEND_RESUME_BIT 0x0001
- #define NO_DRAG 0x80008000
- #define UNIMPLEMENTED 0xA89F
-
- #define RES_ID 128
- #define DRAG 4
-
- /* Efficient C versions of HiWord and LoWord Traps */
-
- #define HiShort(longNum) (short)(((longNum) >> 16) & 0xFFFF)
- #define LoShort(longNum) (short)((longNum) & 0xFFFF)
-
-
-
- enum { APPLE_MENU=RES_ID, FILE_MENU, EDIT_MENU};
- enum { ABOUT=1 };
- enum { OPEN=1,CLOSE, QUIT=4 };
- enum { UNDO=1,CUT=3, COPY, PASTE, CLR };
-
- typedef struct
- { int numOfRects;
- Rect theRect[];
- } **nrctHandle;
-
- typedef struct
- { unsigned int softmask;
- unsigned int hardmask;
- } **machHandle;
-
- pascal long cdev(int,int,int,int,EventRecord*,long,DialogPtr);